
package capa_logica;

import java.io.StringWriter;
import javax.json.Json;
import javax.json.JsonObject;

//TRANSPORTA JSON BIDIREECIONALMENTE
public class WSTransporte {

    private JsonObject json;
    
    public WSTransporte(JsonObject json) 
    {
        this.json = json;
    }

    public JsonObject getJson() 
    {
        return json;
    }

    public void setJson(JsonObject json) 
    {
        this.json = json;
    }
    
   @Override
    public String toString() 
    {
        StringWriter writer = new StringWriter();
        Json.createWriter(writer).write(json);
        return writer.toString();
    }
    
}